import junit.framework.TestCase;

/**
 * A JUnit test case class.
 * Every method starting with the word "test" will be called when running
 * the test with JUnit.
 */
public class StringManipulatorTest extends TestCase {
  
/**
 * Test the basic functionality of makeUsername. 
 * Don?t check for correct case. 
 */ 
public void testMakeUsernameBasic() {
 
  StringManipulator m = new StringManipulator();
  String ret = m.makeUsername("john doe");
  assertEquals("jdoe", ret);
}

  public void testMakeUsernameLower() {
    StringManipulator m = new StringManipulator();
  String ret = m.makeUsername("John DOE");
  assertEquals("jdoe", ret);
}
public void testMakeEmail() {
    StringManipulator m = new StringManipulator();
  String ret = m.makeEmail("JOHN DOE","PURDUE.edu");
  assertEquals("jdoe@purdue.edu", ret);
}
public void testWinToUnixPath() {
    StringManipulator m = new StringManipulator();
  String ret = m.winToUnixPath("c:\\Users\\JoHN DoE\\FiLe.TxT");
  assertEquals("/homes/jdoe/FiLe.TxT", ret);
}
}
